import axiosIns from '../../utils/request'

export default {
  getGoodsList ({ type, pagenum, pagesize }) {
    return axiosIns.get('categories', { params: { type, pagenum, pagesize } })
  },

  addCategories ({ cat_pid, cat_name, cat_level }) {
    return axiosIns.post('categories', { cat_pid, cat_name, cat_level })
  }

}
